package com.googlecode.rjm.model;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Table(name = "member_roles")
public class MemberRole extends Persistent {
	
	@Id
	private Integer id;

	@ManyToOne
	@JoinColumn(name = "member_id")
	private Member member;

	@ManyToOne	
	@JoinColumn(name = "role_id")
	private Role role;

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Member getMember() {
		return this.member;
	}

	public void setMember(Member member) {
		this.member = member;
	}

	public Role getRole() {
		return this.role;
	}

	public void setRole(Role role) {
		this.role = role;
	}
}
